package flextv.core.vo {

import mx.collections.ArrayCollection;

[Bindable]
public class Playlist {
	
	private var _id: uint;
	
	private var _title: String;
	
	private var _storedItems: ArrayCollection;
	
	/** nullify constructor for SQLite */
	public function Playlist(title: String="", storedItems: ArrayCollection = null) {
		if(title == null) throw new ArgumentError("title == null");
		_title = title;
		// if(storedItems == null) throw new IllegalArgumentError("storedItems == null");
		_storedItems = storedItems;
	}
	
	public function toString(): String {
		return "Playlist[title=" + _title + "]";
	}

	public function get id(): uint {
		return _id;
	}
	
	public function set id(value: uint): void {
		_id = value;
	}

	public function get title(): String {
		return _title;
	}
	
	public function set title(value: String): void {
		_title = value;
	}
	
	public function get storedItems(): ArrayCollection {
		return _storedItems;
	}
	
	public function set storedItems(value: ArrayCollection): void {
		_storedItems = value;
	}
	
}
}